package com.example.gulimall.common.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * <p>@description: 用户管理接口  </p>
 * <p>@author: JGD </p>
 * <p>@create: 2020/3/16 10:01 </p>
 * <p>@version : 2.0.0
 **/
public interface UserAuthService extends UserDetailsService {

    @Override
    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;

    UserDetails loadUserByMobile(String mobile);
}
